package com.wms.system.domain.entity.sale;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.wms.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("sale_project_scheme")
public class SaleProjectScheme {
    @TableId(type = IdType.AUTO)
    @TableField("id")
    @ApiModelProperty("id")
    private Long id;               // 主键ID

    @TableField("create_user_name")
    @ApiModelProperty("创建人名称")
    private String createUserName;

    @TableField("create_time")
    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("修改人名称")
    @TableField("update_user_name")
    private String updateUserName;

    @TableField("update_time")
    @ApiModelProperty("修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @ApiModelProperty("项目id")
    @TableField("project_id")
    private Long projectId;

    @ApiModelProperty("项目编号")
    @TableField(exist = false)
    @Excel(name = "项目编号")
    private String projectCode; // 项目编号：P202510001

    @ApiModelProperty("项目名称")
    @TableField(exist = false)
    @Excel(name = "项目名称")
    private String projectName; // 项目名称

    @TableField("scheme_code")
    @ApiModelProperty(value = "方案编号（自动生成）")
    @Excel(name = "方案编号")
    private String schemeCode;

    @TableField("version_number")
    @ApiModelProperty(value = "版本号（例如：V1.0 / V1.1 / V2.0）")
    @Excel(name = "版本号")
    private String versionNumber;

    @TableField("scheme_desc")
    @ApiModelProperty(value = "方案说明（技术描述、差异点）")
    @Excel(name = "方案说明")
    private String schemeDesc;

    @TableField("quotation_amount")
    @ApiModelProperty(value = "报价金额（可选）")
    @Excel(name = "报价金额")
    private BigDecimal quotationAmount;

    @TableField("submission_date")
    @ApiModelProperty(value = "提交日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "提交日期", dateFormat = "yyyy-MM-dd")
    private Date submissionDate;

    @TableField("attachment")
    @ApiModelProperty(value = "附件（上传方案文档路径）")
    private String attachment;

    @TableField("is_adopt")
    @ApiModelProperty(value = "是否采纳（0 是 / 1 否）")
    @Excel(name = "是否采纳",readConverterExp = "0=是,1=否")
    private Integer isAdopt;

}
